package homework.job4

import akka.actor.Actor


class BActor extends Actor{
  private var count =0
  override def receive: Receive = {
    case "1" => {
      count+=1
      println(s"BActor 出招 $count")
      Thread.sleep(2000)
      //通过sender()可以获取到发送消息actore的引用获取到AactorRef
      sender() ! "1"
    }
  }
}
